package com.yzzrjy.Service;

import com.alibaba.fastjson.JSON;
import com.yzzrjy.data.QiNiu;

import java.util.ArrayList;
import java.util.List;

public class ServiceUtils {
    public static List<String> originJsonToAlbumList(String album){
        if(album == null){
            return null;
        }
        List<String> list = JSON.parseArray(album, String.class);
        List<String> albumList = new ArrayList<>();
        for (String s : list) {
            albumList.add(QiNiu.getOriginalFileUrl(s));
        }
        return albumList;
    }
}
